package kr.co.redcircle.broker.information;

import kr.co.redcircle.broker.Broker;
import net.sf.json.JSONObject;

public class NodeInformation {

	private String ip;
	private String cid;
	private int port;
	
	
	public NodeInformation(JSONObject hostInfoObj) {
		this.cid = hostInfoObj.getString(Broker.CID_S);
		this.ip = hostInfoObj.getString(Broker.IP);
		this.port = hostInfoObj.getInt(Broker.PORT);
	}

	public NodeInformation(String ip, String cid, int port) {
		super();
		this.ip = ip;
		this.cid = cid;
		this.port = port;
	}

	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	
}
